<div class="col-sm-12 mt20">
  <div class="panel">
    <div class="panel-body">
      <div class="col-sm-12">
        <div class="row">	
          <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="searchform.seller_code" placeholder="分销商编号">
          </div>
          <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable"
             is-open="date.opened" ng-click="dateOpen($event, date)" placeholder="开始时间" ng-required="true" 
             close-text="关闭" current-text="今天" clear-text="清除" readonly/>
          </div>
          <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable"
             is-open="date1.opened" ng-click="dateOpen($event, date1)" placeholder="结束时间" ng-required="true" 
             close-text="关闭" current-text="今天" clear-text="清除" readonly/>						
          </div>
          <div class="col-sm-4"></div>
          <div class="col-sm-2">
            <button type="button" class="btn btn-info btn-block" ng-click="load()">立即搜索</button>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="panel panel-default">
    <div class="col-sm-12">
      <p style="color: red;">* 预订人数与实际人数不符时，请尽快去团队订单中修改预订人数，以免多扣的预存无法退回。</p>
    </div>

    <table class="table table-hover table-bordered">
      <thead>
        <tr>
          <th class="text-center">出游时间</th>
          <th class="text-center">商品名称</th>
          <th class="text-center">供应商</th>
          <th class="text-center">分销商</th>
          <th class="text-center">预订人数</th>
          <th class="text-center">实际人数</th>
          <th class="text-center">单价</th>
          <th class="text-center">总计</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in objs">
          <td class="text-center">{{obj.arrival_date}}</td>
          <td class="">{{obj.order_name}}</td>
          <td class="">{{obj.upstream_company_name}}<br>{{obj.upstream_company_code}}</td>
          <td class="">{{obj.seller_name}}<br>{{obj.seller_code}}</td>
          <td class="text-center">{{obj.book_count}}</td>
          <td class="text-center">{{obj.actual_count}}</td>
          <td class="text-center">{{obj.cost_price * 0.01 | currency : '￥'}}</td>
          <td class="text-center">{{obj.book_count * obj.cost_price * 0.01 | currency : '￥'}}</td>
        </tr>
        <tr >
          <td class="text-center">总计</td>
          <td class="text-center"></td>
          <td class="text-center"></td>
          <td class="text-center"></td>
          <td class="text-center">{{total.book_count}}</td>
          <td class="text-center">{{total.actual_count}}</td>
          <td class="text-center"></td>
          <td class="text-center">{{total.total * 0.01 | currency : '￥'}}</td>
        </tr>
      </tbody>
    </table>

  </div>
</div>